
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gui</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>gui</strong></big></big> (version 1.0)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/jah/Dropbox/Documents/Coursework/Advanced Software Development/jakme/src/gui.py">/Users/jah/Dropbox/Documents/Coursework/Advanced Software Development/jakme/src/gui.py</a></font></td></tr></table>
    <p><tt>A&nbsp;Tkinter&nbsp;implemention&nbsp;of&nbsp;an&nbsp;EDITOR&nbsp;using&nbsp;the&nbsp;Jakme&nbsp;framework</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-create_buttons"><strong>create_buttons</strong></a>()</dt><dd><tt>Creates&nbsp;the&nbsp;buttons&nbsp;for&nbsp;the&nbsp;global&nbsp;and&nbsp;regional&nbsp;commands.<br>
Global&nbsp;commands&nbsp;are&nbsp;filetype&nbsp;dependent</tt></dd></dl>
 <dl><dt><a name="-get_filetype"><strong>get_filetype</strong></a>()</dt><dd><tt>Gets&nbsp;the&nbsp;filetype&nbsp;and&nbsp;sets&nbsp;in&nbsp;the&nbsp;backend&nbsp;any&nbsp;changes&nbsp;relating&nbsp;to&nbsp;this</tt></dd></dl>
 <dl><dt><a name="-globalcommand"><strong>globalcommand</strong></a>(path)</dt><dd><tt>Deals&nbsp;with&nbsp;button&nbsp;presses&nbsp;relating&nbsp;to&nbsp;global&nbsp;commands<br>
&nbsp;<br>
Args:<br>
path&nbsp;--&nbsp;path&nbsp;to&nbsp;the&nbsp;command&nbsp;to&nbsp;run<br>
&nbsp;<br>
Returns:<br>
Output&nbsp;of&nbsp;the&nbsp;command</tt></dd></dl>
 <dl><dt><a name="-make_global_command"><strong>make_global_command</strong></a>(path)</dt><dd><tt>Makes&nbsp;a&nbsp;global&nbsp;command&nbsp;to&nbsp;be&nbsp;run<br>
&nbsp;<br>
Args:<br>
path&nbsp;--&nbsp;what&nbsp;to&nbsp;run<br>
&nbsp;<br>
Returns:<br>
a&nbsp;function&nbsp;to&nbsp;be&nbsp;called</tt></dd></dl>
 <dl><dt><a name="-make_regional_command"><strong>make_regional_command</strong></a>(path)</dt><dd><tt>Makes&nbsp;a&nbsp;regional&nbsp;command&nbsp;to&nbsp;be&nbsp;run<br>
&nbsp;<br>
Args:<br>
path&nbsp;--&nbsp;what&nbsp;to&nbsp;run<br>
&nbsp;<br>
Returns:<br>
a&nbsp;function&nbsp;to&nbsp;be&nbsp;called</tt></dd></dl>
 <dl><dt><a name="-regional"><strong>regional</strong></a>(path)</dt><dd><tt>Deals&nbsp;with&nbsp;button&nbsp;presses&nbsp;relating&nbsp;to&nbsp;regional&nbsp;commands<br>
&nbsp;<br>
Args:<br>
path&nbsp;--&nbsp;path&nbsp;to&nbsp;the&nbsp;command&nbsp;to&nbsp;run<br>
&nbsp;<br>
Returns:<br>
Output&nbsp;of&nbsp;the&nbsp;command</tt></dd></dl>
 <dl><dt><a name="-run_command"><strong>run_command</strong></a>(path, start_sel, end_sel)</dt><dd><tt>Runs&nbsp;a&nbsp;command&nbsp;on&nbsp;a&nbsp;region&nbsp;of&nbsp;the&nbsp;EDITOR<br>
&nbsp;<br>
Args:<br>
path&nbsp;--&nbsp;what&nbsp;to&nbsp;run<br>
start&nbsp;--&nbsp;where&nbsp;to&nbsp;start<br>
end&nbsp;--&nbsp;where&nbsp;to&nbsp;end</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>ALL</strong> = 'all'<br>
<strong>BOTTOM</strong> = 'bottom'<br>
<strong>END</strong> = 'end'<br>
<strong>INSERT</strong> = 'insert'<br>
<strong>LEFT</strong> = 'left'<br>
<strong>SEL_FIRST</strong> = 'sel.first'<br>
<strong>SEL_LAST</strong> = 'sel.last'<br>
<strong>__author__</strong> = 'Joseph Hallett &amp; Kiri Baildon-Smith'<br>
<strong>__version__</strong> = '1.0'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Joseph&nbsp;Hallett&nbsp;&amp;&nbsp;Kiri&nbsp;Baildon-Smith</td></tr></table>
</body></html>